import {StrictMode} from 'react'
import {createRoot} from 'react-dom/client'
import {HashRouter} from "react-router-dom";    // basename={import.meta.env.BASE_URL}
import {Provider} from 'react-redux';
import {PersistGate} from 'redux-persist/integration/react';
import {store, persist} from './store/inedx.ts';
// import './index.css'
import App from './pages/App.tsx'

createRoot(document.getElementById('root')!).render(
    <StrictMode>
        <Provider store={store}>
            <PersistGate persistor={persist} loading={null}>
                <HashRouter>
                    <App/>
                </HashRouter>
            </PersistGate>
        </Provider>
    </StrictMode>,
)
